test1:
<input name="testname1" type="text" id="testid1" />
<br/>
test2:
<input name="testname2" type="text" id="testid2" />
<br/>
<input name="submit1" type="button" value="text1" onclick=alert(document.getElementById('testid1').value) />
<input name="submit2" type="button" value="text2" onclick=alert(document.geElementByEId('testid2').value) />



